#ifndef __DRONECAN_APP_H__
#define __DRONECAN_APP_H__

#include "sys_bsp.h"

#include "canard.h"
#include "uavcan.equipment.power.CircuitStatus.h"

// DroneCAN相关配置
#define DRONECAN_NODE_ID           101     // 设置您的节点ID
#define CANARD_MEMORY_POOL_SIZE    1024    // DroneCAN内存池大小

extern CanardInstance canard_inst;
extern uint8_t canard_memory_pool[CANARD_MEMORY_POOL_SIZE];

// DroneCAN相关函数声明
void canard_init(void);
void process_canard_rx_frame(const CanardCANFrame* frame);
void send_circuit_status(float voltage_data);


#endif
